package com.example.onlineeducation.data.json

import com.google.gson.annotations.SerializedName

data class LoginJson(
    @SerializedName("token") val token: String?, // eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NDk5MTY1NDEsInVzZXJuYW1lIjoiYWRtaW4ifQ.fpm6oRUR2YxwsmC0HS7vqXAvxAXYKz7tXzgTF8g4fC8
    @SerializedName("userInfo") val userInfo: UserInfo?,
    @SerializedName("hasOfflinePermission") val hasOfflinePermission: Boolean? = false
) {
    data class UserInfo(
        @SerializedName("activitiSync")
        val activitiSync: Int?, // 1
        @SerializedName("avatar")
        val avatar: String?, // https://static.jeecg.com/temp/e1fe9925bc315c60addea1b98eb1cb1349547719_1594713625074.jpg
        @SerializedName("birthday")
        val birthday: String?, // 2018-12-05
        @SerializedName("clientId")
        val clientId: Any?, // null
        @SerializedName("createBy")
        val createBy: Any?, // null
        @SerializedName("createTime")
        val createTime: String?, // 2019-06-21 17:54:10
        @SerializedName("delFlag")
        val delFlag: Int?, // 0
        @SerializedName("departIds")
        val departIds: String?, // c6d7cb4deeac411cb3384b1b31278596
        @SerializedName("email")
        val email: String?, // 11@qq.com
        @SerializedName("id")
        val id: String?, // e9ca23d68d884d4ebb19d07889727dae
        @SerializedName("orgCode")
        val orgCode: String?, // A01
        @SerializedName("orgCodeTxt")
        val orgCodeTxt: Any?, // null
        @SerializedName("phone")
        val phone: String?, // 13074878758
        @SerializedName("post")
        val post: String?, // leader
        @SerializedName("realname")
        val realname: String?, // 管理员
        @SerializedName("relOrgPk")
        val relOrgPk: Any?, // null
        @SerializedName("sex")
        val sex: Int?, // 2
        @SerializedName("status")
        val status: Int?, // 1
        @SerializedName("telephone")
        val telephone: Any?, // null
        @SerializedName("updateBy")
        val updateBy: String?, // admin
        @SerializedName("updateTime")
        val updateTime: String?, // 2022-02-14 10:38:54
        @SerializedName("userIdentity")
        val userIdentity: Int?, // 2
        @SerializedName("username")
        val username: String?, // admin
        @SerializedName("workNo")
        val workNo: String? // A000
    )
}